#include <stdio.h>
#include <string.h>

class c1
{
public:
	int number;
};

int main()
{
/*
	char s[]="123";
	char d[]="123456789";

	strcpy(s, d);
	printf("s:%s, d:%s\n", s, d);
	//printf("&s:%x, &d:%x\n", s, d);
	
	//int a[];
	int n=10,b[10];
	int c[10+1]={0};
	//int e[3]={1,2,3,4};
*/

	int a =3;
	int b =4;
	c1 * c=new c1();	
	c1 * d=new c1();
	int * e =new int(100);
	printf("addr of a on stack: 0x%X\n",&a);
	printf("addr of b on stack: 0x%X\n",&b);
	
	printf("addr of c on stack: 0x%X--0x%X(on heap)\n",&c,c);
	printf("addr of d on stack: 0x%X--0x%X(on heap)\n",&d,d);
	printf("addr of e on stack: 0x%X--0x%X(on heap)\n",&e,e);

	return 0;
}
